<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">

    <ui:composition template="/template.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundleFuncionario.CreateFuncionarioTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">
            <h:panelGroup id="messagePanel" layout="block">
                <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
            </h:panelGroup>
            <h:form>
                   <!-- <h:outputLabel value="#{bundleFuncionario.CreateFuncionarioLabel_idFuncionario}" for="idFuncionario" />
                    <h:inputText id="idFuncionario" value="#{funcionarioController.selected.idFuncionario}" title="#{bundleFuncionario.CreateFuncionarioTitle_idFuncionario}" />
                -->
                <h:panelGrid columns="2">
                    <h:outputLabel value="#{bundleFuncionario.CreateFuncionarioLabel_endereco}" for="endereco" />
                    <h:inputText id="endereco" value="#{funcionarioController.selected.endereco}" title="#{bundleFuncionario.CreateFuncionarioTitle_endereco}" />

                    <h:outputLabel value="#{bundleFuncionario.CreateFuncionarioLabel_senha}" for="senha" />
                    <h:inputText id="senha" value="#{funcionarioController.selected.senha}" title="#{bundleFuncionario.CreateFuncionarioTitle_senha}" />

                    <h:outputLabel value="#{bundleFuncionario.CreateFuncionarioLabel_cpf}" for="cpf" />
                    <h:inputText id="cpf" value="#{funcionarioController.selected.cpf}" title="#{bundleFuncionario.CreateFuncionarioTitle_cpf}" />

                    <h:outputLabel value="#{bundleFuncionario.CreateFuncionarioLabel_rg}" for="rg" />
                    <h:inputText id="rg" value="#{funcionarioController.selected.rg}" title="#{bundleFuncionario.CreateFuncionarioTitle_rg}" />

                    <h:outputLabel value="#{bundleFuncionario.CreateFuncionarioLabel_email}" for="email" />
                    <h:inputText id="email" value="#{funcionarioController.selected.email}" title="#{bundleFuncionario.CreateFuncionarioTitle_email}" />

                    <h:outputLabel value="#{bundleFuncionario.CreateFuncionarioLabel_nome}" for="nome" />
                    <h:inputText id="nome" value="#{funcionarioController.selected.nome}" title="#{bundleFuncionario.CreateFuncionarioTitle_nome}" />

                    <h:outputLabel value="#{bundleFuncionario.CreateFuncionarioLabel_telefone}" for="telefone" />
                    <h:inputText id="telefone" value="#{funcionarioController.selected.telefone}" title="#{bundleFuncionario.CreateFuncionarioTitle_telefone}" />
                </h:panelGrid>
                <br />
                <h:commandLink action="#{funcionarioController.create}" value="#{bundleFuncionario.CreateFuncionarioSaveLink}" />
                <br />
                <br />
                <h:commandLink action="#{funcionarioController.prepareList}" value="#{bundleFuncionario.CreateFuncionarioShowAllLink}" immediate="true"/>
                <br />
                <br />
                <h:commandLink value="#{bundleFuncionario.CreateFuncionarioIndexLink}" action="/index" immediate="true" />
            </h:form>
        </ui:define>
    </ui:composition>

</html>
